home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10042 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  39 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news1.io.org!torfree!kishonti
  3. From: kishonti@torfree.net (William Kishonti)
  4. Subject: function _main in c0.asm error
  5. Message-ID: <Dnt9yx.1HK.0.queen@torfree.net>
  6. Organization: Toronto Free-Net
  7. X-Newsreader: TIN [version 1.2 PL2]
  8. Date: Tue, 5 Mar 1996 20:23:21 GMT
  9.  
  10. Hi, I have tried everything (so I think).
  11.  
  12. Every time I try to run my code (which I copied directly out of a 
  13. tutorial) I get the same two error messages and the program won't execute.
  14.  
  15. Firstly when declaring a class.
  16.  
  17. [Sample Code]
  18.  
  19. class kbmouseobj {
  20. ...
  21. }
  22.  
  23. Always comes back with a "declaration error" on "class kbmouseobj { when 
  24. I try to compile the CPP file on it's own, however, the second problem 
  25. only occurs when I try to compile and run the TEST program for the above 
  26. mouse handler.  I get an error "function _main not defined in c0.asm"
  27.  
  28. If anyone has ANY CLUE as to what the possible problems could be, I would 
  29. really appretiate it... I have checked the code and it is ver-batum from 
  30. the book... I have checked other books with no results... there is never 
  31. any reference to c0.asm anywhere...
  32.  
  33. BTW I am using Borland Turbo C++ 3.0 for DOS.
  34.  
  35. Thanks ahead of time.
  36.  
  37. You can E-mail me directly at kishonti@torfree.net.
  38.  
  39.